package com.dongss.study.activemq.controller;

import com.dongss.study.activemq.entity.UserBean;
import com.dongss.study.activemq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by dh on 2017/3/1.
 */
@Controller
@RequestMapping("/base")
public class OtherController {

    @Autowired
    UserService userService;

    @RequestMapping("sayOther")
    @ResponseBody
    public String sayOther(){
        System.out.println("sayOther called.");
        return "hello,other.";
    }
}
